import { TaskStatus } from '../task-status.enum';
import { IsEnum, IsString } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class UpdateTasksStatusDto {
  @ApiProperty()
  @IsString()
  id: string;
  @ApiProperty({ description: 'OPEN,IN_PROGRESS,DONE' })
  @IsEnum(TaskStatus)
  status: TaskStatus;
  @ApiProperty({
    type: Number,
    description: '删除标记 0-未删除 1-删除',
    default: 0,
    required: false,
  })
  isDelete: number;
}
